package com.rany.day02;

public class DemoStaticFied {
    public static void main(String[] args) {
        Student one = new Student("linwei",26);
        one.room = "602";
        System.out.println("姓名是"+one.getName()+"年龄是"+one.getAge()+"教室是"+Student.room+"学号是"+one.getId());
        Student two = new Student("lulu",25);
        System.out.println("姓名是"+two.getName()+"年龄是"+two.getAge()+"教室是"+Student.room+"学号是"+two.getId());
        Student three = new Student("gugu",27);
        System.out.println("姓名是"+three.getName()+"年龄是"+three.getAge()+"教室是"+Student.room+"学号是"+three.getId());
    }
}
